package diona.db

import org.squeryl.adapters.MySQLAdapter

/**
 * User: anton
 * Date: 30.07.11 23:50
 */
class CustomMySqlAdapter extends MySQLAdapter {
  override def stringTypeDeclaration(length:Int) = {
    if (length > 2000) {
      "text"
    } else {
      super.stringTypeDeclaration(length)
    }
  }
}